package com.example.stream.demostream.service.impl;

import com.zhe.mybatis.entity.to.DataPermissionDto;
import com.zhe.mybatis.service.DataPermissionProvider;
import org.springframework.stereotype.Service;

import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * @ClassName DatePermissionServiceImpl
 * @Description TODO
 * @Author zhonghuaen
 * @Date 2021/10/1 11:31
 * @Version 1.0
 */
@Service
public class DatePermissionServiceImpl implements DataPermissionProvider {
    @Override
    public DataPermissionDto getDataPermission(List<String> list) {
        DataPermissionDto dataPermissionDto = new DataPermissionDto();
        Set<String> org=new HashSet<>();
        org.add("111");
        org.add("5222");
        dataPermissionDto.setOrgSet(org);

        Set<Long> user=new HashSet<>();
        user.add(1l);
        user.add(2l);
        dataPermissionDto.setUserSet(user);
        return dataPermissionDto;
    }
}
